package Commands;

/**
 * Created with IntelliJ IDEA.
 * Authors: Henrique Alberto Rusa and Danilo Barbosa Porto
 * Date: 04/11/13
 *
 * The Command Interface enables the abstraction of a command on this application.
 * This file just creates definitions of constants that are used to identify our instruction packages from node to node.
 */
public interface Command {

    /*
      * Defining types of instruction packages:
      *     Creating a file - integer 1
      *     Reading a file  - integer 2
      *     Delete a file   - integer 3
      *     File Exchange   - integer 4
      *     Update Table    - integer 5
      *     End Connection  - integer 6
      */
    static final int create     = 1;
    static final int read       = 2;
    static final int delete     = 3;
    static final int exchange   = 4;
    static final int update     = 5;
    static final int end        = 6;
}
